const btnDom = document.querySelector('.btn')

function fn(interval, start, to) {
  const gap = to - start
  const speed = temp / interval
  const now = new Date()

  function _run() {

  }
  requestAnimationFrame(_run)

}
fn(3, 0, 999)